﻿namespace Vcare.Helpers
{
  using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Web;
  using Vcare.Models;
  using System.Configuration;
  using System.Web.Mvc;

  public class AppLists
  {
    public List<PaymentTypes> ListPaymentType { get; set; }

    public List<SelectListItem> PricePlan { get; set; }

    public List<SelectListItem> Options { get; set; }

    public List<string> PaymentOption { get; set; }

    public List<SelectListItem> CardType { get; set; }

    public void PopulateLists()
    {
      this.ListPaymentType = new List<PaymentTypes>();
      ListPaymentType.Add(new PaymentTypes { PaymentType = "Debit Card" });
      this.PricePlan = new List<SelectListItem>();
      this.PricePlan.Add(new SelectListItem 
      {
        Text = "Annual Membership £" + ConfigurationManager.AppSettings["Annual Membership"],
        Value = ConfigurationManager.AppSettings["Annual Membership"]
      });
      this.PaymentOption = new List<string>();
      this.PaymentOption.Add("Yearly - 1m free");
      this.PaymentOption.Add("Monthly");
      this.PaymentOption.Add("Quarterly 5% off");
      this.CardType = new List<SelectListItem>();
      this.CardType.Add(new SelectListItem
      {
        Text = "MasterCard/Eurocard",
        Value = "MasterCard/Eurocard"
      });
      this.CardType.Add(new SelectListItem
      {
        Text = "Visa/Delta/Electron",
        Value = "Visa/Delta/Electron"
      });
      this.CardType.Add(new SelectListItem
      {
        Text = "Discover",
        Value = "Discover"
      });
      this.CardType.Add(new SelectListItem
      {
        Text = "American Express",
        Value = "American Express"
      });
      this.CardType.Add(new SelectListItem
      {
        Text = "Maestro",
        Value = "Maestro"
      });

    }
  }
}